/**
 * Created by Administrator on 2017/8/23.
 */
var htmlwp = require('html-webpack-plugin')
module.exports = {
    entry: "./src/main.js",
    output: {
        path: __dirname + '/dist',
        filename: 'duild.js'
    },
    module: {
        loaders: [{
                test: /\.css$/,
                loader: 'style-loader!css-loader'
            },
            {
                test: /\.scss$/,
                loader: 'style-loader!css-loader!sass-loader'
            },
            {
                test: /\.less$/,
                loader: 'style-loader!css-loader!less-loader'
            },
            {
                test: /\.(png|jpg|gif)$/,
                loader: 'url-loader?limit=20000'
            },
            {
                test: /.vue$/, // 解析 .vue 组件页面文件
                loader: 'vue-loader'
            }
        ]
    },
    plugins: [
        new htmlwp({
            title: "首页",
            filename: 'index.html',
            template: 'template.html'
        })
    ]
}